/************************************************************************************
**                                                                                 **
**                               mcHF QRP Transceiver                              **
**                             K Atanassov - M0NKA 2014                            **
**                                                                                 **
**---------------------------------------------------------------------------------**
**                                                                                 **
**  File name:                                                                     **
**  Description:                                                                   **
**  Last Modified:                                                                 **
**  Licence:		For radio amateurs experimentation, non-commercial use only!   **
************************************************************************************/

#ifndef __I_RX_FILTER_6K_H
#define __I_RX_FILTER_6K_H

#define I_BLOCK_SIZE		1
#define I_NUM_TAPS			89

/*
 	 * Hilbert 0 Degree, "Phase-added" bandpass filter
     * Kaiser Window FIR Filter, Beta = 5.75, Raised Cosine = 0.91
     * Fc = 2.26 kHz (0.094)
     * BW = 7.25 kHz (0.302)
     * 89 Taps
     *
     * 20140926 by KA7OEI using Iowa Hills Hilbert Filter Designer
     *
     * This filter used in the "6 kHz" RX filter position of the mcHF
*/

const float i_rx_6k_coeffs[I_NUM_TAPS] =
{
		-0.000022682373717438,
		0.000038238204564056,
		0.000106103474329490,
		0.000112588277224745,
		-0.000001044056524999,
		-0.000220094982327220,
		-0.000424274911375459,
		-0.000434788035699723,
		-0.000139453017934211,
		0.000375971408919194,
		0.000801147757062312,
		0.000749955332343770,
		0.000038057970465913,
		-0.001083544085482150,
		-0.001944999287130160,
		-0.001808699680722850,
		-0.000405941583674816,
		0.001688437310558100,
		0.003186391338558470,
		0.002794418308157900,
		0.000158741803918238,
		-0.003576377418073650,
		-0.006125801172151690,
		-0.005350680308136920,
		-0.000819334976691253,
		0.005395383587742980,
		0.009458815112605070,
		0.007953102693187210,
		0.000355148270524342,
		-0.009820167110937010,
		-0.016337096498702600,
		-0.013745297780700800,
		-0.001267420288973250,
		0.015418941709472400,
		0.026187850069946600,
		0.021884307313133900,
		0.000547853915223056,
		-0.029198332931040700,
		-0.050220164915604400,
		-0.044280778159989200,
		-0.001564103360239580,
		0.072560909705731900,
		0.157505034279737000,
		0.224922981969257000,
		0.250563014502060000,
		0.224922981969261000,
		0.157505034279743000,
		0.072560909705738800,
		-0.001564103360234500,
		-0.044280778159987100,
		-0.050220164915605100,
		-0.029198332931042900,
		0.000547853915220766,
		0.021884307313132800,
		0.026187850069946800,
		0.015418941709473600,
		-0.001267420288971990,
		-0.013745297780700100,
		-0.016337096498702700,
		-0.009820167110937610,
		0.000355148270523721,
		0.007953102693186970,
		0.009458815112605290,
		0.005395383587743470,
		-0.000819334976690837,
		-0.005350680308136820,
		-0.006125801172151940,
		-0.003576377418074090,
		0.000158741803917861,
		0.002794418308157760,
		0.003186391338558600,
		0.001688437310558400,
		-0.000405941583674517,
		-0.001808699680722680,
		-0.001944999287130150,
		-0.001083544085482270,
		0.000038057970465767,
		0.000749955332343670,
		0.000801147757062286,
		0.000375971408919226,
		-0.000139453017934159,
		-0.000434788035699684,
		-0.000424274911375447,
		-0.000220094982327228,
		-0.000001044056525015,
		0.000112588277224733,
		0.000106103474329485,
		0.000038238204564058,
		-0.000022682373717435
};

/*
static float32_t 		FirState_I[128];
arm_fir_instance_f32 	FIR_I;
*/
#endif
